Delete User
Deletes the specified User from the tenant.
Headers
| Header | Value |
|---|---|
user_id | Login username (email) |
api_key | API key of the user for authentication |
Content-Type | application/json |
Accept | application/json |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
accelqLoginUrl | string | Yes | The AccelQ login URL for API access. |
tenantCode | string | Yes | Tenant code for identifying the organization. |
userPid | string | Yes | Unique identifier of the user to be deleted |
user_id | string | Yes | Login username (email) |
api_key | string | Yes | API key of the user for authentication |
Responses
204 - User successfully deleted
No response sample available
400 - Bad Request Error
json
{
"error": "Cannot delete your own user account"
}
403 - Forbidden - User does not have permission to delete users
json
{
"error": "User does not have authorization to access this feature"
}
404 - User not found
json
{
"error": "User with pid : '26' doesnot exist."
}
cURL Command Builder
URL Parameters
Headers
Request Sample (cURL)
curl -X DELETE "${{accelqLoginUrl}}/awb/api/2.0/${{tenantCode}}/administration/users/${{userPid}}" \
-H "user_id: ${{user_id}}" \
-H "api_key: ${{api_key}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"